package com.design.pattern.structure.decorator.battercake.v2;

public class Test {
    public static void main(String[] args) {
        Battercake battercake;
         battercake = new BaseBattercake();
        battercake = new EggDecorator(battercake);
        battercake = new SauageDecorator(battercake);
        System.out.println(battercake.getMsg() + ",价格：" + battercake.getPrice());
    }
}

